<div class="text-success" style='overflow-y: scroll;'>
  <table class="table table-bordered" >
    <thead>
      <th width="10%" class='text-center'>姓名</th>
      <th width="5%" class='text-center'>性别</th>
      <th width="5%" class='text-center'>年龄</th>
      <th width="10%" class='text-center'>文化程度</th>
      <th width="5%" class='text-center'>照片</th>
      <th width="5%" class='text-center'>爱好</th>
      <th class='text-center'>特长</th>
      <th width="6%" class='text-center'>审核</th>
      <th width="10%" class='text-center'>操作</th>  
    </thead>
  </table>
</div>
<div style='overflow-y: scroll; height: 300px;'>
  <table class="table table-striped table-bordered" >
    {% if users %}
      {% for user in users %}
      <tr>
        <td width="10%">{{ user.name }}</td>
        <td width="5%" >
          {% if user.gender == True %} 男 
          {% else %} 女 {% endif %}
        </td>
        <td width="5%" >{{ now.year-user.birthday.year }}</td>
        <td width="10%" >
          {% if user.education == '1' %}高职
          {% elif user.education == '2' %}本科
          {% elif user.education == '3' %}硕士
          {% elif user.education == '4' %}博士
          {% endif %}
        </td>
        <td width="5%" style="text-align:center">
          <img src= '/static/image/{{ user.image }}' 
            width="30" 
            height="40" />
        </td>
        <td width="5%" >
          {% for i in user.hobby %}
            {% if i == '1' %}篮球
            {% elif i == '2' %}足球
            {% elif i == '3' %}健身
            {% elif i == '4' %}其他
            {% endif %}
          {% endfor %}
        </td>
        <td>{{ user.skill }}...</td>
        <td width="6%" >
          {% if user.verify == None %} 
            <span class="text-warning">未审核</span> 
          {% elif user.verify == True %} 
            <span class="text-success">通过</span> 
          {% else %} 
            <span class="text-danger">不通过</span> 
          {% endif %}
        </td>
        <!-- <td width="10%" >[编辑按钮组] </td> -->
        <td width="10%" >
          <div class="btn-group-vertical">
            <a class="btn btn-primary btn-sm" 
              href="{{ url_for('edit', userid=user.id) }}">
              <span class="glyphicon glyphicon-edit"></span>编辑
            </a>
          </div>

          <div class="btn-group">
            <button type="button" 
              class="btn btn-warning btn-sm dropdown-toggle" 
              data-toggle="dropdown" 
              aria-expanded="false">审核
              <span class="caret"></span>
            </button>
            <lu class="dropdown-menu dropdown-menu-right">
              <li>
                <a class="dropdown-item" 
                  href="{{ url_for('verify_true', userid=user.id) }}">
                  <span class="glyphicon glyphicon-ok"></span>通过
                </a>
              </li>
              <li class="divider"></li>
              <li>
                <a class="dropdown-item" 
                  href="{{ url_for('verify_false', userid=user.id) }}">
                  <span class="glyphicon glyphicon-remove"></span>不通过
                </a>
              </li>
            </lu>
         </div>

          <form class="inline" method="POST"
              action="{{ url_for('delete', userid=user.id) }}">
              <button type="submit" class="btn btn-danger btn-sm"
                onclick="return confirm('真的要删除吗？');">
                <span class="glyphicon glyphicon-trash"></span>删除
              </button>
          </form>
        </td>
        
      </tr>
      {% endfor%}
    {% endif %}
  </table>
</div>